package First;
import java.time.Year;

public class THIRD {
    public class Thoroughbred {
        private final String mother;
        private final String father;
        private final int birthyear;

        public Thoroughbred(String mother, String father, int birthyear) {
            this.mother = mother;
            this.father = father;
            this.birthyear = birthyear;
        }

        public int getCurrentAge() {
            return Year.now().getValue() - birthyear;
        }

        public String getFather() {
            return father;
        }

        public String getMother() {
            return mother;
        }
    }

}
